
 
 <div class="main-wrap">

        <div class="crumb-wrap">
            <div class="crumb-list"><i class="icon-font"></i><a href="{:U('Index/index')}">首页</a><span class="crumb-step">&gt;</span><span class="crumb-step">&gt;</span><span>佣金参数配置</span></div>
        </div>
		  <div class="search-wrap">
            <div class="search-content">
              
                    <table class="search-tab">
                        <tr>
                           
						   
                            <th width="70">验证密码:</th>
                            <td><input class="common-text" placeholder="输入验证密码后操作"  id="yanzheng" type="text"></td>
                         
							
						
                        </tr>
                    </table>
                
            </div>
        </div>
		
        <div class="result-wrap">
            <div class="result-content">
                <form action="" method="post" id="myform" name="myform" enctype="multipart/form-data">
                    <table class="insert-tab" width="100%">
                        <tbody>
						
						    <tr>
                                <th style="width:200px;"><i class="require-red">*</i>是否开启返佣：</th>
                                <td>
                                    
									<if condition="$re.isfenyong eq 1">
									  <input type="radio" name="isfenyong" checked value="1"/> 开启 &nbsp;&nbsp;&nbsp;&nbsp;
									  <input type="radio" name="isfenyong" value="2"/> 关闭
									<else/>
									  <input type="radio" name="isfenyong" value="1"/> 开启 &nbsp;&nbsp;&nbsp;&nbsp;
									  <input type="radio" name="isfenyong" checked value="2"/> 关闭
									
									</if>
									
									
                                </td>
                            </tr>
							
							
							<!-- <tr>
                                <th style="width:200px;"><i class="require-red">*</i>返佣模式：</th>
                                <td>
                                    
									<if condition="$re.moshi eq 1">
									  <input type="radio" name="mohsi" checked value="1"/> 下级用户被打赏时返佣 &nbsp;&nbsp;&nbsp;&nbsp;
									  <input type="radio" name="moshi" value="2"/> 下级用户提现时返佣
									<else/>
									  <input type="radio" name="moshi" value="1"/> 下级用户被打赏时返佣 &nbsp;&nbsp;&nbsp;&nbsp;
									  <input type="radio" name="moshi" checked value="2"/>  下级用户提现时返佣
									
									</if>
									
									
                                </td>
                            </tr>-->
						  
							 <tr>
                                <th style="width:200px;"><i class="require-red">*</i>一级返佣：</th>
                                <td>
                                    佣金 <input class="common-text required" id="title" name="yongjin1" placeholder="佣金比例" size="10" value="{$re.yongjin1}" type="text">%
                                </td>
                            </tr>
						     <tr>
                                <th style="width:200px;"><i class="require-red">*</i>二级返佣：</th>
                                <td>
                                   佣金 <input class="common-text required" id="title" name="yongjin2" placeholder="佣金比例" size="10" value="{$re.yongjin2}" type="text">%
                                </td>
                            </tr>
						
							 <tr>
                                <th style="width:200px;"><i class="require-red">*</i>三级返佣：</th>
                                <td>
                                   佣金 <input class="common-text required" id="title" name="yongjin3" placeholder="佣金比例" size="10" value="{$re.yongjin3}" type="text">%
                                </td>
                            </tr>
							
                            <tr>
							
                            <tr>
                                <th></th>
                                <td>
                                    <input class="btn btn-primary btn6 mr10" value="提交" onclick="yanzheng()" type="button">
                                    <input class="btn btn6" onclick="history.go(-1)" value="返回" type="button">
                                </td>
                            </tr>
                        </tbody></table>
                </form>
            </div>
        </div>

    </div>


 <script>
   
   function yanzheng(){
   
      var yanzheng=$('#yanzheng').val();
   
   
      $.post("{:U('Daili/yanzheng')}",{"yanzheng":yanzheng},function(re){
	    
		if(re==1){
		
		
		 $('#myform').submit();
		
		
		}else{
		
		  alert('验证密码错误不能操作');
		
		
		}
	  
	  
	  
	  })
   
   }
 
 
 </script>
